package com.designpatternspart2.abstractfactory;

import com.designpatternspart2.factorymethod.Animal;
/**
 * Author: Dwayne
 * 
 */
public class ReptileFactory extends SpeciesFactory
{
    @Override
    public Animal getAnimal(String type)
    {
        if ("snake".equals(type))
        {
            return new Snake();
        }
        else
        {
            return new Tyrannosaurus();
        }
    }
}